import { createStore, applyMiddleware, combineReducers } from 'redux'
import collapsedReducer from "./reducer/collapsedReducer";
// import rightListReducer from './reducer/rightListReducer';
import todoListReducer from './reducer/todoListReducer';
// import userLoginReducer from './reducer/userLoginReducer';
import reduxPromsie from 'redux-promise';

const reducer = combineReducers({
  iscollapsed:collapsedReducer,
  // rightList:rightListReducer,
  todoList:todoListReducer,
  // userinfo:userLoginReducer
})

const store = createStore(reducer, applyMiddleware(reduxPromsie))

export default store
